package com.project.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.time.LocalDateTime;

@Data
public class UserFile {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private String userName;

    private String filePath;

    private String fileName;

    private String fileBlock;

    private int status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private MultipartFile file;

    @TableField(exist = false)

    private Integer page;
    @TableField(exist = false)

    private Integer size;
}
